"""
使用内置的urllib快速爬取网页
"""
import urllib.request

response = urllib.request.urlopen('https://www.baidu.com/')
html = response.read().decode('utf-8')
print(html)
print(response.getcode())
print(response.info())
